package com.pojo;

import java.util.Date;
import java.util.List;

public class Order {
	private int id;
	private int userId;
	private Date createTime;
	private String note;
	private User user;
	private List<OrderDetail> orderDetailList;

	@Override
	public String toString() {
		return "Order [id=" + id + ", userId=" + userId + ", user=" + user
				+ ", createTime=" + createTime + ", note=" + note
				+ ", orderDetailList=" + orderDetailList + "]";
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public List<OrderDetail> getOrderDetailList() {
		return orderDetailList;
	}

	public void setOrderDetailList(List<OrderDetail> orderDetailList) {
		this.orderDetailList = orderDetailList;
	}
}
